// 学生类，表示单个学生的信息
public class Student {
    private int id;
    private String name;
    private String gender;
    private int age;
    private String studentNumber;

    // 构造方法
    public Student(int id, String name, String gender, int age, String studentNumber) {
        this.id = id;
        this.name = name;
        this.gender = gender;
        this.age = age;
        this.studentNumber = studentNumber;
    }

    // Getters 和 Setters
    public int getId() { return id; }
    public void setId(int id) { this.id = id; }

    public String getName() { return name; }
    public void setName(String name) { this.name = name; }

    public String getGender() { return gender; }
    public void setGender(String gender) { this.gender = gender; }

    public int getAge() { return age; }
    public void setAge(int age) { this.age = age; }

    public String getStudentNumber() { return studentNumber; }
    public void setStudentNumber(String studentNumber) { this.studentNumber = studentNumber; }

    @Override
    public String toString() {
        return "ID: " + id + ", 姓名: " + name + ", 性别: " + gender + ", 年龄: " + age + ", 学号: " + studentNumber;
    }
}